<?php

if(! defined('OT_ROOT')) {
	exit('Access Denied');
}


class AppUpKeepBigFile{
	public static $appName = '后台大文件上传';
	public static $appID = 164;

	public static function Jud(){
		return false;
	}

	public static function Show($str, $def=''){
			return $def;
	}

	public static function ErrDie($err=''){
	}


	private $uploadDir;			// 上传目录
	private $cachePath;			// 文件块临时缓存目录
	private $tmpPath;			// PHP文件临时目录
	private $blobNum;			// 第几个文件块
	private $totalBlobNum;		// 文件块总数
	private $fileName;			// 文件名
	private $md5FileName;

	private $savePath = '';		// 文件保存路径
	private $fileRelPath = '';	// 文件相对路径
	private $fileUrlDir = '';	// 文件网址目录
	private $fileExt = '';		// 文件扩展名

	public function __construct($tmpPath, $blobNum, $totalBlobNum, $fileName, $md5FileName, $savePath, $fileRelPath, $fileUrlDir, $fileExt)
	{
		$this->uploadDir = OT_ROOT .'upFiles/';
		$this->cachePath = OT_ROOT .'cache/bigFile/';
	}

	private function fileMerge()
	{

	}

	private function deleteFileBlob()
	{

	}

	private function calcFileBlob()
	{
		$fileNum = 0;
		return $fileNum;
	}


	private function moveFile()
	{

	}

	public function apiReturn()
	{

	}


	private function touchDir()
	{

	}

	private function createName($fileName, $md5FileName)
	{

	}
}
?>